package com.yswl.pri.picture.entry;

import java.io.Serializable;

public enum ImageSourceDBCategory implements Serializable {
    ONE("大胸妹", 1), TWO("小翘臀", 2), THREE("黑丝袜", 3), FOUR("美腿控", 4),FIVE("颜值妹", 5),SIX("大杂烩", 6);
    // 成员变量
    private String name;
    private int index;

    // 构造方法
    private ImageSourceDBCategory(String name, int index) {
        this.name = name;
        this.index = index;
    }

    // 普通方法  
    public static String getName(int index) {
        for (ImageSourceDBCategory c : ImageSourceDBCategory.values()) {
            if (c.getIndex() == index) {
                return c.name;
            }
        }
        return null;
    }

    // get set 方法  
    public String getName() {
        return name;
    }

    public int getIndex() {
        return index;
    }

}
